package com.yd.pojo;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

@TableName("banner")
public class Banner extends Model<Banner>{
	private static final long serialVersionUID = 1L;
	@TableId(value="id",type=IdType.AUTO)
	
	private Integer id;
	private String tid;
	private String img;
	private String title;
	private String url;
	private String addtime;
	private String uptime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getAddTime() {
		return addtime;
	}
	public void setAddTime(String addTime) {
		this.addtime = addTime;
	}
	public String getUpTime() {
		return uptime;
	}
	public void setUpTime(String upTime) {
		this.uptime = upTime;
	}
	
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
	
}
